| Conditions | 8 |
| Total Lines | 10 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import {chat_v1 as chatV1} from '@googleapis/chat'; |
||
| 19 | |||
| 20 | protected getUserTimezone(): LocaleTimezone { |
||
| 21 | if (this.event.common?.timeZone?.id) { |
||
| 22 | const locale = this.event.common.userLocale ?? 'en'; |
||
| 23 | const id = this.event.common.timeZone.id; |
||
| 24 | const offset = this.event.common.timeZone.offset ?? 0; |
||
| 25 | return {locale, id, offset}; |
||
| 26 | } |
||
| 27 | |||
| 28 | return DEFAULT_LOCALE_TIMEZONE; |
||
| 29 | } |
||
| 33 |